/*
 * @Description: 
 * @Version: 1.668
 * @Autor: 地虎降天龙
 * @Date: 2023-12-01 08:34:03
 * @LastEditors: 地虎降天龙
 * @LastEditTime: 2023-12-01 08:34:11
 */
import { defineClientConfig } from '@vuepress/client'

export default defineClientConfig({
	enhance ({ app, router, siteData }) {
		// 路由切换事件处理
		router.beforeEach((to, from, next) => {
			//触发百度的pv统计
			if (typeof _hmt != "undefined") {
				if (to.path) {
					_hmt.push(["_trackPageview", to.fullPath]);
				}
			}
			next();
		});
	},
	setup () { },
	rootComponents: [],
})